﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;

namespace ArmoryViewerMobile
{
    static class Program
    {
        private static string curDir = "\\Application Data\\Armory Viewer";
        private static Settings settings;
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main()
        {
            if (!System.IO.Directory.Exists(curDir))
                System.IO.Directory.CreateDirectory(curDir);
            settings = new Settings();
            settings.Load();
            settings.Save();

            Application.Run(new Search());
        }

        public static string CurrentDirectory
        {
            get { return curDir; }
        }

        public static Settings Settings
        {
            get { return settings; }
        }
    }
}